package org.example.dic.core.form;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value="修改字典类型form")
public class UpdateDicTypeForm implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "字典类型id不能为空")
    @ApiModelProperty(value = "字典类型id",required = true)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "分组key")
    private String groupKey;

    @ApiModelProperty(value = "类型key")
    private String typeKey;

    @ApiModelProperty(value = "类型名称")
    private String typeName;

    @ApiModelProperty(value = "序号")
    private Integer sortNum;
}
